package smartadsmobileserver

import org.apache.commons.beanutils.converters.DateTimeConverter;

class User {

	String name
	int age
	String gender
	
	String email
	String password
	
	Boolean logged
	
	String toString() {
		"${this.email}"
	}
	
    static constraints = {
		name(blank:false)
		age(min:13, blank:false)
		gender(inList:["Male","Female"])
		email(blank:false, email:true, unique:true)
		password(blank:false, size:6..20)
    }
}
